package com.thinkTank.oa.service.impl;

import java.io.Serializable;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.thinkTank.oa.base.BaseServiceImpl;
import com.thinkTank.oa.dao.ProjectAttrMapper;
import com.thinkTank.oa.entity.ProjectAttr;
import com.thinkTank.oa.service.ProjectAttrService;

@Transactional
@Service("projectAttrService")
public class ProjectAttrServiceImpl extends BaseServiceImpl<ProjectAttr> implements ProjectAttrService {

    public ProjectAttrMapper getProjectAttrMapper() {
        return (ProjectAttrMapper)super.getBaseMapper();
    }
    @Autowired  
    public void setProjectAttrMapper(ProjectAttrMapper projectAttrMapper) {
        super.setBaseMapper(projectAttrMapper);
    }
    
    @Override
    public ProjectAttr findByProjectId(Serializable projectId) {
        return getProjectAttrMapper().findByProjectId(projectId);
    }
}
